{if $errors}
	$.growl.settings.noticeElement($('.growl-error-container'));
	{if in_array('TITLE', $errors)}
		$.growl('ERROR', 'Title must be provided.');
		$.growl.settings.displayTimeout+=2000;
	{/if}
	{if in_array('PATH', $errors)}
		$.growl('ERROR', 'Path must be provided.');
		$.growl.settings.displayTimeout+=2000;
	{/if}
	{if in_array('PATH_UNIQUE', $errors)}
		$.growl('ERROR', 'Path must be unique in scope.');
		$.growl.settings.displayTimeout+=2000;
	{/if}
	{if in_array('CONTEXT', $errors)}
		$.growl('ERROR', 'You must specify a context if <strong>Other...</strong> is selected.');
		$.growl.settings.displayTimeout+=2000;
	{/if}
{/if}

$('#{$page.id}').find('a:first').html('{$page.revision.title|escape:"javascript":"UTF-8"}');

